<template>
  <div class="notFind">
    <el-image :src="url" class="notFindImg" />
    <div class="route">
      <el-button type="info" @click="runToHome">返回首页</el-button>
      <el-button type="info" @click="goBack">返回上一页</el-button>
    </div>
  </div>
</template>

<script setup>
import { ref } from 'vue';
import image from '@/assets/404.jpg'
import router from '../../router';

const url = ref(image)
const runToHome = () => {
  router.push('/home')
}

const goBack = () => {
  router.go(-1)
}
</script>

<style lang="less" scoped>
@import url("./index.less");
</style>